package _09_高频题;

import java.util.Arrays;
import java.util.Comparator;

public class _252_会议室壹 {

    public boolean isComplete(int[][] nums) {
        if (nums.length == 0) return true;
        Arrays.sort(nums, Comparator.comparingInt(a -> a[0]));
        for (int i = 1; i < nums.length; i++) {
            if (nums[i][0] > nums[i - 1][1]) {
                return false;
            }
        }
        return true;
    }
}
